﻿using WholesaleOnline.Model;

namespace WholesaleOnline.Repository
{
    public class BuyerProductRepositoryFactory
    {
        public static BuyerProductRepository CreateBuyerProductRepository(InventoryType type)
        {
            switch (type)
            {
                case InventoryType.All:
                    return new BuyerProductRepository(null);
                case InventoryType.NotOrder:
                    return new BuyerNotOrderProductRepository(null);
                case InventoryType.Hot:
                    return new BuyerHotProductRepository(null);
                case InventoryType.New:
                    return new BuyerNewProductRepository(null);
            }
            return new BuyerOrderedProductRepository(null);
        }
    }
}
